EmrtdConnector

open class EmrtdConnector

Connect an eMRTD NFC Chip with the Document Validation Server.

Will connect to the NFC Chip using an android.nfc.tech.IsoDep. Will connect to the Document Validation Server using a org.java_websocket.client.WebSocketClient.

Constructors

Link copied to clipboard
constructor(clientId: String, webSocketUrl: String, closedListener: ClosedListener, statusListener: StatusListener, emrtdPassportListener: EmrtdPassportListener)

Properties

Link copied to clipboard
Exception that occurred during IsoDep#connect() or IsoDep#transceive(byte[]).
Link copied to clipboard
Exception that occurred during the WebSocketClient operations.

Functions

Link copied to clipboard
open fun cancel()
Cancels this session as soon as possible.
Link copied to clipboard
open fun connect(isoDep: IsoDep, validationId: String, can: String)
open fun connect(isoDep: IsoDep, validationId: String, documentNumber: String, dateOfBirth: String, dateOfExpiry: String)
Starts the Session.
Link copied to clipboard
open fun isOpen(): Boolean